import cv2
image=cv2.imread("car.png",cv2.IMREAD_GRAYSCALE)
cv2.imshow("car",image)
k=cv2.waitKey()
if k==ord('s'):
    cv2.imwrite("D:/save_car.jpg",image)
cv2.destroyAllWindows()